package com.greentreecs.fms.pojo.domain;

import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author 刀氏春秋
 * @date 2023/11/30
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel("收入产生明细")
public class IncGenerateDO extends AccountingRecDO implements Comparable<IncGenerateDO> {
    @ApiModelProperty("卡类型")
    @ExcelProperty("卡类型")
    private String cardUse;

    @Override
    public String toString() {
        return super.toString() + " [cardUse = " + cardUse + "]";
    }

    @Override
    public int compareTo(IncGenerateDO o) {
        return this.getGuestName().compareTo(o.getGuestName());
    }
}
